import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login2 from '@/components/Login2'
import axios from 'axios'

Vue.use(Router);
Vue.prototype.$axios = axios;

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/helloworld',
      name: 'helloworld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'login',
      component: Login2
    }
  ]
})
